<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="ja">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>uupaa.js - uu.css("option:selected") test</title>
<script type="text/javascript" src="http://uupaa-js-spinoff.googlecode.com/svn/trunk/uupaa-detect.js/uupaa-detect.mini.js"></script>
<script type="text/javascript" src="../../uupaa-selector.js"></script>
<script type="text/javascript" src="../../uupaa-selector+.js"></script>
  <style>
  div { color:red; }
  </style>
</head>
<body>
<hr />
  <select name="garden" multiple="multiple" size="6">
    <option>Flowers</option>
    <option selected="selected">Shrubs</option>
    <option>Trees</option>
    <option selected="selected">Bushes</option>
    <option>Grass</option>
    <option>Dirt</option>
  </select>
  <div id="result"></div>
<script>
function boot() {
    uu.css("select").forEach(function(v) {
      v.onchange = function() {
        var str = "";
        uu.css("option:selected").forEach(function(vv) {
          str += vv.innerHTML + " ";
        });
        uu.id("result").innerHTML = str;
      };
      v.onchange();
    });
}
window.onload = boot;
</script>
<pre>
    uu.css("select").forEach(function(v) {
      v.onchange = function() {
        var str = "";
        uu.css("option:selected").forEach(function(vv) {
          str += vv.innerHTML + " ";
        });
        uu.id("result").innerHTML = str;
      };
      v.onchange();
    });
</pre>
</body>
</html>